package cn.sunjiachao.blog4jcs.modules.blog.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.sunjiachao.blog4jcs.modules.blog.dao.CommentDao;
import cn.sunjiachao.blog4jcs.modules.blog.service.CommentService;
import cn.sunjiachao.blog4jcs_common.model.Comment;

@Service
public class CommentServiceImp implements CommentService {
	
	@Resource
	private CommentDao commentDao;

	@Override
	public void save(Comment comment) {
		commentDao.save(comment);
	}

	@Override
	public List<Comment> queryCommentsByBlogId(Long id) {
		return commentDao.queryCommentsByBlogId(id);
	}

}
